const http = require("http");
const url = require("url");
const path = require("path");

var filePath = path.joi

var reqUrl = "http://localhost:8081";

var options = url.parse(reqUrl);
options.method = "POST";

var userName = process.argv[2];
var pwd = process.argv[3];

var userInfor = {userName:userName,pwd:pwd};
var userStr = JSON.stringify(userInfor);

var reqObj = http.request(options,(res)=>{

})

//向请求体写入数据
reqObj.write(userStr);
reqObj.end();
